You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot find function eprint_formatted in module formatter and incorrect number of arguments supplied to format_and_print in src/rate_limit.rs and src/downtimes.rs.
CI | Cross Compile (Windows) — 🔧 Needs a code fix, caused by this PR
Compilation error in src\rate_limit.rs:151: function eprint_formatted not found in module formatter. Also, missing argument for function format_and_print in src\downtimes.rs:188 and src\downtimes.rs:221.
CI on my pull request is failing. Help me find and fix the root cause of each failing job below — they were flagged as caused by changes in this PR, so focus on the diff. For each job, explain the failure and propose a fix.
Before you start, set up the Datadog software-delivery tooling so you can
query the CI data yourself:
1. Check whether you already have the Datadog software-delivery MCP tools
(e.g. a `search_datadog_ci_pipeline_events` tool) and the `unblock-pr` skill.
2. If either is missing, STOP and ask me for permission before installing
anything. Do not install or run anything until I have said yes.
3. Only with my explicit approval, set up the Datadog software-delivery MCP
server and skills by following:
https://docs.datadoghq.com/getting_started/software_delivery_mcp_tools/
then restart so the skill is picked up.
4. If I decline, skip all of the above and work from the context below alone.
Then run /unblock-pr — it will pull the CI data itself. The job context below is what we already know.
If /unblock-pr is not available — because I declined the setup above, or it did not install — work from the context below instead.
Datadog has already classified this failure as caused by changes in this PR.
Take that as given and work the fix:
1. Locate the change. Diff this branch against its base and find the change
that produces this error. Explain the mechanism, don't just name a file:
git fetch origin && git diff $(git merge-base origin/main HEAD)...HEAD
2. Reproduce it locally. Run the failing job's command or test before
proposing anything.
3. Propose the smallest fix that addresses the root cause — not a workaround,
not a broadened assertion, not a disabled or skipped test.
4. Re-run the same command to confirm, and say exactly what you ran.
5. If the failure turns out to be intermittent rather than deterministic, say
so plainly instead of "fixing" it — that is a flaky test, and patching it
hides the problem.
If the right move is to re-run the job rather than change code, use the job
link in the context below. For GitHub Actions: `gh run rerun <run-id> --failed`,
where the run ID is the number after `/runs/` in that URL (not the trailing
number, which is the job ID).
Branch: datadog-api-spec/generated/6477
CI | Check, Test & Coverage
Commit: ccbfc906c7c36e2f86115f93562a0d55436a458e
Error (code / build):
Compilation errors in src/rate_limit.rs and src/downtimes.rs: cannot find functions and incorrect number of arguments supplied.
CI job: https://github.com/DataDog/pup/actions/runs/32947717893/job/98111983323
CI | Cross Compile (Linux)
Commit: ccbfc906c7c36e2f86115f93562a0d55436a458e
Error (code / build):
Cannot find function `eprint_formatted` in module `formatter` and incorrect number of arguments supplied to `format_and_print` in src/rate_limit.rs and src/downtimes.rs.
CI job: https://github.com/DataDog/pup/actions/runs/32947717893/job/98111983573
CI | Cross Compile (Windows)
Commit: ccbfc906c7c36e2f86115f93562a0d55436a458e
Error (code / build):
Compilation error in src\rate_limit.rs:151: function `eprint_formatted` not found in module `formatter`. Also, missing argument for function `format_and_print` in src\downtimes.rs:188 and src\downtimes.rs:221.
CI job: https://github.com/DataDog/pup/actions/runs/32947717893/job/98111983572
Plus 2 more failing jobs not shown here.
The reason will be displayed to describe this comment to others. Learn more.
Description does not match
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See DataDog/datadog-api-spec#6477 Test branch datadog-api-spec/test/nogates/wire-pup-generation